<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <script src="../jsl/jquery-1.8.2.js" type="text/javascript"></script>
        <script src="../utils/DBManager.js" type="text/javascript"></script>
        <script type="text/javascript">
            var DBManager;

            if (!window.openDatabase)
            {
                alert("此浏览器不支持HTML5新特性WebSQL！");
            }
            else
            {
//                webSql = new webStorage.webSql();
                var DBManager = new webStorage.webSql();
            }

        </script>
    </head>
    <body>
        <!--<button id="btn" onclick="webSql.openDatabase()">-->
            <!--创建数据库Student</button>-->
        <!--<br />-->
        <!--<button id="Button1"  onclick="webSql.createTable()">-->
            <!--创建表stu</button>-->
        <!--<br />-->
        <!--<button id="Button2" onclick="webSql.insert()">-->
            <!--插入数据</button>-->
        <!--<br />-->
        <!--<button id="Button3" onclick="webSql.query()">-->
            <!--查询数据</button>-->
        <!--<br />-->
        <!--<button id="Button4" onclick="webSql.dropTable()">-->
            <!--删除表</button>-->
        <button id="Button5" onclick="DBManager.initDB('admin','admin111222')">
            初始化数据库</button>
        <div id="datalist">
        </div>
    </body>
</html>
